package com.qitmiaojie.service;



import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Role;

import java.util.Map;

public interface RoleService {
    /***
    * @description 查询所有角色
    * @param name
     * @param currentPage
     * @param size
    * @return
    * @author
    * @date
    */
    Result QueryAllRole(String name, Integer currentPage, Integer size);

    /***
    * @description 根据id查询
    * @param id
    * @return
    * @author
    * @date
    */
    Result QueryRoleById(Integer id);
    /***
    * @description 修改
    * @param role
    * @return
    * @author
    * @date
    */
    Result UpdateRole(Role role);

    /***
    * @description 添加
    * @param role
    * @return
    * @author
    * @date
    */
    Result AddRole(Role role);

    /***
    * @description del
    * @param id
    * @return
    * @author
    * @date
    */
    Result DeleteRole(Integer id);

    Result DeleteManyRole(Integer[] ids);

    Result QueryMenuById(Integer id);

    Result UpdateRoleAuth(Map<String, Object> ids);
}
